<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>LQBCMS-销售管理后台系统</title>
<load href="__STATIC__/Css/reset.css" />
<load href="__STATIC__/Css/zh-cn-system.css" />
<link rel="stylesheet" type="text/css" href="__STATIC__/Css/style/zh-cn-styles1.css" title="styles1" media="screen" />
<link rel="alternate stylesheet" type="text/css" href="__STATIC__/Css/style/zh-cn-styles2.css" title="styles2" media="screen" />
<link rel="alternate stylesheet" type="text/css" href="__STATIC__/Css/style/zh-cn-styles3.css" title="styles3" media="screen" />
<link rel="alternate stylesheet" type="text/css" href="__STATIC__/Css/style/zh-cn-styles4.css" title="styles4" media="screen" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/styleswitch.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/index.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/main.js"></script>

<script type="text/javascript" src="__PUBLIC__/artDialog/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="__PUBLIC__/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript">
$(document).ready(function(e) {
    $('.sidebox').find('ul').first().find('li').first().addClass('on');
	$("#leftMain").find('.sidebox').first().show();
	$(".sidebox ul li").click(function(){
		$(".sidebox ul li").removeClass('on');
		$(this).addClass('on');
	})

	/*$.post('__APP__/public/tongji/randNum'+Math.random(), function(data){
		if(data.status==1){
			var url = '__APP__/public/tongji/status/1';
			var w=780;
			var h= height = $(window).height()-300;

			art.dialog.open(url, {
				title: '系统提示',
				width: w,
				height: h,
				lock:true,
				opacity: 0.2,

				okVal:false,
				cancel: true,
				cancelVal:'关闭'
			})
		}
	  //setTimeout(function(){location.reload();},1000);
	});*/
});

//setInterval(function(){ $("#today").text(new Date().toLocaleString());  },1000);
//var getMemoTime = setInterval(function(){ getMemo(); },60000);

function getMemo(){
	var display = $("#pop").css('display');
	if(display=='block') return false;
	$.ajax({
		url:'__APP__/Memo/getMemo',
		dataType:'json',
		data:encodeURI('id=1'),
		success:function(data){
			var list = data.data;
			var content='';
			if(data.status > 0){
				var title = "您有个（ "+data.status+"）事件未处理，请到备忘录查看！";
				jQuery.each(list,function(i){
					content += '<li>'+list[i]['title']+'</li>';
				});
				//var content = "请输入你的内容简介，这里是内容简介.请输入你的内容简介，这里是内容简介.请输入你的内容简介，这里是内容简介";
				$("#popTitle").text(title);
				$("#popIntro").html(content);
				$("#pop").show();
			}else{

				return false;
			}
		}
	});
}

function sidebar(id){
	$('.sidebox').hide();
	$('.sidebox_'+id).show();
	$('.sidebox_'+id).find('li').show();
	$('.sub_menu').removeClass('on');
	//$('.sidebox_'+id).find('ul').first().find('li').first().addClass('on');
	$('.sidebox_'+id).find('.leftMenu').removeClass('on');
	$('.sidebox_'+id).find('.leftMenu').first().addClass('on');

	var firstUrl = $('.sidebox_'+id).find('ul').first().find('li').first().find('a').attr('href');

	if(firstUrl!=''){
		$('#rightMain').attr('src',firstUrl);
	}

	var txt = $('#top_menu li.on').html();
	$('#current_pos').html(txt);
	$('#sub_pos').html("");
}

function logout(){
	$.get('__MODULE__/login/logout/randNum'+Math.random(), function(data){
		location.reload();
	});

	/*$.ajax({
		url:'__APP__/Public/logout/randNum'+Math.random(),
		dataType:'json',
		data:encodeURI('id=1'),
		success:function(data){
			//var jsondata = eval('('+data+')');
			if(data.status==1){
				art.dialog({content: data.info,icon: 'succeed',time: 2});
				setTimeout(function(){location.reload();},1000);
			}else{
				art.dialog({content: data.info,icon: 'warning',time: 2});
			}
		}
	});*/
}

function setSystemTime(){
	$nowTime = "<?php echo date('Y-m-d H:i:s'); ?>";
	$("#today").html($nowTime);
}
</script>
</head>
<body scroll="no" class="objbody" id="ogjbody">
<div class="header">
	<div class="logo"></div>
    <div class="rt-col">
    	<div class="tab_style white cut_line text-r">
        您好: {$adminInfo['nickname']|default=$adminInfo['username']} <span>|</span>
        <a href="javascript:logout();" >[安全退出]</a>
        <ul id="Skin">
        <li class="s1 styleswitch" rel="styles1"></li>
        <li class="s2 styleswitch" rel="styles2"></li>
        <li class="s3 styleswitch" rel="styles3"></li>
        <li class="s4 styleswitch" rel="styles4"></li>
      </ul>
        </div>
    </div>
    <div class="col-auto">
    	<div class="log white cut_line">
        	<img src="__STATIC__/Images/icon/lockscreen.png"> 后台管理<span>|</span>
        	当前操作系统: {$os} <span>|</span>
        	当前浏览器: {$browser['0']}&nbsp;{$browser['1']} <span>|</span>
            <!-- 导航列表 end-->
        	<font style=" padding-left:20px; ">系统时间：
            	<font  id="today" ></font>
            </font>
        </div>
        <ul class="nav white" id="top_menu">

        <!-- 导航列表 start-->
        <volist name="menuList" id="vo">
        	<li class="top_menu <eq name="i" value="1">on</eq> "><a href="javascript:sidebar('{$vo['id']}');">{$vo['name']}</a></li>
        </volist>
        </ul>
    </div>
</div>
<!--header-->

<div id="content">
	<div class="col-left left_menu">
    	<div id="Scroll" style="height:500px"><div id="leftMain"><include file="left" /></div></div>
        <a id="openClose" class="open" title="展开与关闭" hidefocus="hidefocus" style="outline-style:none;" href="javascript:;"><span class="hidden">展开</span></a>
    </div>

	<div class="col-1 lf cat-menu" id="display_center_id" style="display:none" height="100%">
		<div class="content">
        <iframe name="center_frame" id="center_frame" src="" frameborder="false" scrolling="auto" style="border:none" width="100%" height="100%" allowtransparency="true"></iframe>
        </div>
    </div>

    <div class="col-auto mr8" style="position:relative;">
    <div class="crumbs">
        <div class="position" >
	        当前位置：
	        <span id="current_pos">首页</span>
	        <span id="sub_pos"></span>
	        <!-- <font id="notice" style="width:600px; position:absolute;right:10px;top:5px; font: 12px/1.5 tahoma,arial,宋体,sans-serif;"><marquee direction="left" align="bottom" height="25" width="100%" onmouseout="this.start()" onmouseover="this.stop()" scrollamount="2" scrolldelay="1" style=" font: 12px;"><volist name="notice" id="val">{$val['content']|strip_tags}</volist></marquee></font> -->
        </div>

    </div>
    	<div class="col-1">
        	<div class="content" style="position:relative; overflow:hidden">
                <iframe name="right" id="rightMain" src="__APP__/Index/right" frameborder="false" scrolling="auto" style="border:none; margin-bottom:30px" width="100%"  allowtransparency="true"></iframe>
                <div class="fav-nav">
					<div id="panellist">

					</div>
					<div id="paneladd"></div>
					<input type="hidden" id="menuid" value="">
					<input type="hidden" id="bigid" value="" />
                    <div id="help" class="fav-help"></div>
				</div>
        	</div>
        </div>
    </div>
</div>

<volist name="tooltip" id="vo">
	<input name="{$vo.content}"  title="{$vo.title}" alt="{$vo.id}" class="hintTime" type="hidden" value="{$vo.hintTime}">
</volist>
</body>
</html>
<!--jquery右下角pop弹窗start -->
<script type="text/javascript" >

$(function(){
	//showTip();
	/*$("#popClose").click(function(){
		$("#pop").hide();
	})*/

	/*$(".hintTime").each(function(i) {
		var second = $(this).val();
		var title = $(this).attr('title');
		second = parseInt(second)*1000;
		$("#popTitle").text(title);
		setInterval(function(){showTip();},second);
		setInterval(function(){ $("#today").text(new Date().toLocaleString());  },1000);
	});

	var dianhuatixing = self.setInterval(function(){showTip();},7200000);	//一天86400000*/


	$('#today').html(currentTime);
	setInterval(function(){$('#today').html(currentTime)},1000);	//当前时间

})

function currentTime(){

	var d = new Date(),str = '';
	str += d.getFullYear()+'年';
	str += d.getMonth() + 1+'月';
	str += d.getDate()+'日';
	str += d.getHours()+'时';
	str += d.getMinutes()+'分';
	str+= d.getSeconds()+'秒';
	return str;
}


function showTip(){
	$("#pop").slideDown("slow");
	$("#pop").load("__APP__/Prompt/statistics");
}

function tooltip(){
	  //使用参数：1.标题，2.链接地址，3.内容简介
	  window.onload=function(){
		  	var title = "这里是标题，哈哈";
		  	var url = "#";
			var content = "请输入你的内容简介，这里是内容简介.请输入你的内容简介，这里是内容简介.请输入你的内容简介，这里是内容简介";
			var pop=new Pop(title,url,content);
		}
}

</script>
<div id="pop" style="display:none;"> </div> <!--右下角pop弹窗 end-->
